/*
 * @Author: lusx 
 * @Date: 2020-05-11 14:20:45 
 * @Last Modified by: lusx
 * @Last Modified time: 2020-05-21 16:10:39
 */
import React from 'react';
import { inject, observer } from 'mobx-react';
import MyListPage from '../../../main/pages/mainListPage'
@inject('feedbackStore')
@observer
@hoc
export default class List extends React.Component {
    componentDidMount() {
        const { init } = this.props.feedbackStore;
        init();
    }
    render() {
        const { actionTab } = this.props;
        // const list = this.props.feedbackStore[`list${actionTab}`];
        const list = this.props.feedbackStore.list0;
        return (
            <MyListPage listViewStore={list} hasBtns={false} />
        )
    }
}


function hoc(WrappedComponent) {
    return class extends React.Component {
        render() {
            return (
                <div style={{ height: '100vh', backgroundColor: '#fff' }}>
                    <WrappedComponent {...this.props} />
                </div>
            );
        }
    }
}